<template>
    <view class="content">
		<view class="list">
			<view @tap="jump('/subcontract/set/set')">
				<view>个人信息</view>
				<image src="/static/ze-arrows.png" mode="widthFix"></image>
			</view>
			<view @tap="jump('/subcontract/Bindmobile/index')">
				<view>修改手机号</view>
				<image src="/static/ze-arrows.png" mode="widthFix"></image>
			</view>
		</view>
		<view class="login" @tap="login">退出登录</view>
	</view>
</template>

<script>
const app = getApp();
export default {
    data() {
        return {
			
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad(options) {
        var that = this;
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {},
    methods: {
		login(){
			var that = this;
			uni.showModal({
				title: '温馨提示',
				content: '确定要退出登录吗吗？',
				confirmColor:'#24C373',
				success: function (res) {
					if (res.confirm) {
						uni.removeStorageSync('token');
						uni.removeStorageSync('sjtoken');
						uni.removeStorageSync('sjtype');
						// uni.clearStorageSync();
						uni.navigateTo({
							url:'/pages/index/index?state=0&channel_id='+uni.getStorageSync('channel_id')+'&channel_url_id='+uni.getStorageSync('channel_url_id')+"&channel_user_id="+uni.getStorageSync('channel_user_id')+"&official_id="+uni.getStorageSync('official_id')
						})
						////console.log('用户点击确定');
					} else if (res.cancel) {
						////console.log('用户点击取消');
					}
				}
			});
		},
		jump(url){
			uni.navigateTo({
				url:url
			})
		}
	}
};
</script>
<style>
	.login{
		width: 100%;
		height: 90rpx;
		text-align: center;
		line-height:90rpx;
		color: rgb(16,16,16);
		font-size: 24rpx;
		background-color: #fff;
		text-align: center;
		margin-top: 10rpx;
		font-family: SourceHanSansSC-regular;
	}
	page{
		background-color: rgba(248,248,248,1);
	}
	.list{
		width: 100%;
		height: auto;
		display: table;
		box-sizing: border-box;
		padding: 0px 24rpx;
		background-color: #fff;
	}
	.list>view{
		width: 100%;
		height: 90rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid rgba(248,248,248,1);
	}
	.list>view>view:nth-child(1){
		color: rgb(16,16,16);
		font-size: 24rpx;
		text-align: left;
		font-family: SourceHanSansSC-regular;
	}
	.list>view>image{
		width: 40rpx;
		height: auto;
	}
</style>
